package 创建数组;

public class demo5_数组最小值5 {
    public static void main(String[] args) {
    	int[] a;
        a=new int[5];
        int min=100;
        System.out.println("随机的数分别是：");
        for(int i=0;i<a.length;i++) {
            a[i]=(int) (Math.random() * 100);
            System.out.println(a[i]);
        if(a[i]<min)
            min=a[i];
        }  
        System.out.println("本次练习是找出最小的值：" + min);
    }
}